package demo3;

import java.sql.SQLOutput;

public class Student {
    private String name;
    public int age;
    public static String classRoom;

    public Student(String name,int age, String classRoom1){
        this.name = name;
        this.age = age;
        classRoom = classRoom1;
    }

    public static String getClassRoom() {
        return classRoom;
    }

    public static void setClassRoom(String classRoom) {
        Student.classRoom = classRoom;
    }

    public static void doClass(){
        System.out.println("静态方法，我去上课了");
    }
    public void doClass1(){
        age = 10;
        System.out.println("非静态方法，我去上课了");
    }

    public static void main(String[] args) {
        setClassRoom("广学楼");
        String ret = getClassRoom();
        System.out.println(ret);
    }
}
